package com.bing.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 替换shiroToken
 *
 * @author Bing
 * @date 2021/10/03 19:06
 **/
public class JwtToken implements AuthenticationToken {
    /**
    * 密钥
    * @author Bing
    * @date 2021/10/03 19:07
     * @param null
    * @return
    */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
